const xxx = [
  {
    labo: 1,
    name: '男'
  },
  {
    labo: 0,
    name: '女'
  }
]

function cl(num) {
  const res = xxx.find(v => v.labo === num)

  console.log(res.name)

  return res.name
}

export default cl
